<template>
  <div id="app">
      <my-form :title="title"></my-form>  
  </div>
</template>

<script>
import myForm from './components/myForm.vue';

export default {
  name: 'app',
  provide() {
    return {
      someValue: '最外层父组件provide的值'
    }
  },
  components: {
    myForm
  },
  data() {
    return {
      title: '封装表单组件'
    }
  },
}
</script>

<style lang="scss">
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
